<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/drop-down.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>维修管理</title>
</head>
<body data-id="13">
<nav class="breadcrumb">订单管理 <span class="c-gray en">&gt;</span> 维修管理<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <div class="ml-20 mr-20">
        <div class="bg-1 bk-gray pb-10">
            <form id="form-search">
                <div class="pl-10 lh-30 mb-10">
                    <table class="table-hover table_li ml-10 mb-10 table">
                        <thead class="text-l">
                        <tr>
                          <!--  <td class="col-3-1">
                                <div class="row ml-10">
                            <span class="select-box size-M radius col-xs-8" style="width:20%">
                            <select class="select" name="brandclass" id="area" size="1">
                            	<option value="">全部</option>
                                <option value="1" selected>北京</option>
                            </select>
                            </span>
                                </div>
                            </td>-->
                        </tr>
                        </thead>
                    </table>
                    <div class="line mb-10"></div>
                    <table class="table-hover table_li ml-10 mb-10 table">
                        <thead class="text-l">
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 72px;" class="form-label f-l pt-5">&nbsp;&nbsp;申请编号：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius kild"  id="applyCode" name="applyCode" placeholder="输入申请编号查询" datatype="n0-9" errormsg="格式错误，请重新输入" ignore="ignore" onkeyup="this.value=this.value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 63px;" class="form-label f-l pt-5">&nbsp;&nbsp;订&nbsp;单&nbsp;号：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius kild"  id="orderCode" name="orderCode" placeholder="输入订单号查询" oninput = "value=value.replace(/[\W]/g,'')" maxlength="12">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 83px;" class="form-label f-l pt-5">&nbsp;&nbsp;&nbsp;&nbsp;状&nbsp;&nbsp;态&nbsp;：</label>
                              <!--      <span class="select-box size-M radius col-xs-8" style="width:40%">
                              <select class="select" name="dealState" id="dealState" size="1">
                                <option value="" selected>选择状态</option>
                                <option value="10">待审核</option>
                                &lt;!&ndash;<option value="20">已受理</option>&ndash;&gt;
                                <option value="30">维修处理</option>
                                <option value="50">已完成</option>
                                <option value="60">已关闭</option>
                              </select>
                              </span>-->
                                    <div class="input_box sel_box sel_box02 col-xs-8 col-sm-9" style="margin-left: -10px;">
                                        <input  type="text" class="dataval input-text radius f-l w-180" readonly>
                                        <i class="icon_arrow"></i>
                                        <span class="placeholder02"><span class="all-radius">全部</span></span>
                                        <ul class="ulbox item" style="display: none">
                                            <li class=""><input type="checkbox" crmCustomerId="10,30,50,60"><p class="checkboxall">全选</p></li>
                                            <li class="lidata" crmCustomerId="10" crmCustomername="待审核"><input type="checkbox" class="evetyipt"><span>待审核</span></li>
                                            <li class="lidata" crmCustomerId="30" crmCustomername="维修处理" ><input type="checkbox" class="evetyipt"><span>维修处理</span></li>
                                            <li class="lidata" crmCustomerId="50" crmCustomername="已完成"><input type="checkbox" class="evetyipt"><span>已完成</span></li>
                                            <li class="lidata" crmCustomerId="60" crmCustomername="已关闭" ><input type="checkbox" class="evetyipt"><span>已关闭</span></li>

                                        </ul>
                                    </div>
                                </div>

                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 82px;" class="form-label f-l pt-5">维修原因：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width:40%">
                                    <select class="select kild" name="maintainReason" id="maintainReason" size="1">
                                        <option value="" selected>选择原因</option>
                                        <option value="10">电机/主机不转、功率不够</option>
                                        <option value="20">机器劲小、钻不动孔</option>
                                        <option value="30">调速功能有问题</option>
                                        <option value="40">开关坏</option>
                                        <option value="50">电源问题</option>
                                        <option value="60">机器不发动</option>
                                        <option value="70">外机破损</option>
                                        <option value="80">商品质量问题</option>
                                    </select>
                                </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 71px;" class="form-label f-l pt-5">送修方式：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width:40%">
	                                    <select class="select kild" name="mainType" id="mainType" size="1">
		                                    <option value="" selected>送修方式</option>
		                                    <option value="10">客户自行送维修点</option>
		                                    <option value="20">厂家上门维修</option>
		                                    <option value="30">鑫方盛售后上门维修</option>
	                                	</select>
	                              	</span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 83px;" class="form-label f-l pt-5">申请时间：</label>
                                    <div class="f-l">
                                        <input class="workinput wicon input-text radius kild" id="applyTimeMin" type="text" placeholder="起始时间" style="width:115px;" readonly>
                                        ~
                                        <input class="workinput wicon input-text radius kild" id="applyTimeMax" type="text" placeholder="结束时间" style="width:115px;" readonly>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 82px;" class="form-label f-l pt-5">审核时间：</label>
                                    <div class="f-l">
                                        <input class="workinput wicon input-text radius kild" id="checkTimeMin" type="text" placeholder="起始时间" style="width:115px;" readonly>
                                        ~
                                        <input class="workinput wicon input-text radius kild" id="checkTimeMax" type="text" placeholder="结束时间" style="width:115px;" readonly>
                                    </div>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5">客户名称：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius kild"  id="buyerName" name="buyerName"  placeholder="输入客户关键字" datatype="*" errormsg="格式错误，请重新输入" ignore="ignore" onKeyUp="value=value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 73px;" class="form-label f-l pt-5">&nbsp;&nbsp;&nbsp;&nbsp;审&nbsp;核&nbsp;人：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius kild"  id="checker" name="checker"  placeholder="输入姓名关键字" datatype="/^[^a-zA-Z1-9]{0,20}$/" errormsg="格式错误，请重新输入" ignore="ignore" onKeyUp="value=value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 72px;" class="form-label f-l pt-5">&nbsp;&nbsp;销售经理：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius kild"  id="saleManager" name="saleManager"  placeholder="输入姓名关键字" datatype="/^[^a-zA-Z1-9]{0,20}$/" errormsg="格式错误，请重新输入" ignore="ignore" onKeyUp="value=value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 70px;" class="form-label f-l pt-5">发货仓：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width:40%">
                              <select class="select kild" name="shippingWarehouse" id="shippingWarehouse" size="1">
                                <option value="" selected>请选择发货仓</option>
                              </select>
                              </span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label style="width: 84px;" class="form-label f-l pt-5">&nbsp;收&nbsp;货&nbsp;地：</label>
                                    <span class="select-box size-M radius col-xs-8" style="width:120px">
                                  <select class="select kild" onchange="discountdata(1)" name="brandclass" id="getArea" size="1">
                                    <option value="" selected>请选择收货区域</option>
                                    <!--<option value="001">北京</option>-->
                                    <!--<option value="002">天津</option>-->
                                  </select>
                                </span>
                                    <span class="select-box size-M radius col-xs-8 ml-10" style="width:120px">
                                  <select class="select kild" name="brandclass " id="getPlace" size="1">
                                    <option value="" selected>请选择收货位置</option>
                                    <!--<option value="001">北京仓</option>-->
                                    <!--<option value="002">天津仓</option>-->
                                  </select>
                                </span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5">注册手机号：</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius kild"  id="register_phone" name="register_phone"  placeholder="输入买家关键字" datatype="n0-11" errormsg="输入格式不正确" ignore="ignore" onKeyUp="value=value.replace(/\s+/g,'')">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5">订单来源：</label>
                                    <span class="select-box size-M radius col-xs-8 ml-10 w-180" style="width:40%">
                                          <select class="select kild" name="brandclass" id="platform" size="1">
                                            <option value="0" selected>全部</option>
                                            <option value="10">普通平台</option>
                                            <option value="20">签约平台</option>
                                          </select>
                                      </span>
                                </div>
                            </td>
                        </tr>
                        </thead>
                    </table>
                </div>
                <div class="text-c pb-20 pt-10">
                    <input type="submit" class="btn btn-secondary radius size-S powerButton 127" value="搜&nbsp;&nbsp;索">
                    <input name="" id="ssss" type="reset" onclick="resetDiv()" class="btn radius size-S ml-10 powerButton 127" value="重&nbsp;&nbsp;置">
                </div>
            </form>
            <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="150">商品</th>
                    <th width="30">客户名称</th>
                    <th width="50">维修原因</th>
                    <th width="50">送修方式</th>
                    <th width="50">申请日期</th>
                    <th width="50">审核日期</th>
                    <th width="50">状态</th>
                    <th width="50">操作</th>
                </tr>
                </thead>
           
            </table>
            <div id="orderList" class="tableclass" style="padding-bottom:20px;"></div>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>
    </div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/warehouse.js?rev=@@hash"></script>
<script src="../../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../../ht-js/order/afterSale-maintain.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script>
    $(function(){
        $("#form-search").Validform({
            tiptype:2,
            callback:function(form){
                console.log(111);
                getList(1);
                return false;
            }
        });
    })
    function timeSet(startEl,endEl,timeFormat){
        /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
        /*时间设置*/
        var thisMaxTime = $.nowDate().substring(0,$.nowDate().length-8)+"23:59:59";
        var start = {
            format: timeFormat,
            maxDate: thisMaxTime,
            okfun: function(obj){
                end.minDate = obj.val.substring(0,obj.val.length-5)+"00:00:00"; //开始日选好后，重置结束日的最小日期
            }
        };
        var end = {
            format: timeFormat,
            maxDate: thisMaxTime,
            okfun: function(obj){
                start.maxDate = obj.val.substring(0,obj.val.length-5)+"23:59:59"; //将结束日的初始值设定为开始日的最大日期
            }
        };
        $.jeDate(startEl,start);
        $.jeDate(endEl,end);
    }
    timeSet("#applyTimeMin","#applyTimeMax","YYYY-MM-DD hh:mm");
    timeSet("#checkTimeMin","#checkTimeMax","YYYY-MM-DD hh:mm");
</script>
</body>
</html>